from datetime import datetime

try:
    d = datetime(year=2025, month=2, day=29)
except ValueError:
    print("Is not a valid date!")
